public class Prime2 {
    public static void main(String[] args) {
        for (int i = 1; i <= 100 ; i++) {
            int j = 0;
            for ( j = 2; j <= Math.sqrt((double)i) ; j++) {
                if(i % j == 0){
                    break;
                }
            }
            if(j > Math.sqrt((double)i)){
                System.out.println(i);
            }
        }
    }
}
